package com.lytxmd.boxtest.ui.main;

import com.lytxmd.boxtest.base.BaseModel;
import com.lytxmd.boxtest.base.BasePresenter;
import com.lytxmd.boxtest.base.BaseView;
import com.lytxmd.boxtest.bean.DeviceInfo;
import com.zhy.http.okhttp.request.RequestCall;

/**
 * Created by zhangyinglong on 2017/5/15.
 */
public interface MainContract {

    abstract class MainPresenter extends BasePresenter<BaseView>{
        /**
         * 获取设备信息
         * @param deviceNumStr 设备机器码
         */
        abstract void getDeviceInfo(String deviceNumStr);
    }

    interface MainView extends BaseView{
        /*请求设备信息成功*/
        void getDeviceInfoSucc(DeviceInfo deviceInfo);
        /*请求设备信息失败*/
        void getDeviceInfoFail(String msg);

    }

    interface MainModel extends BaseModel{
        RequestCall getDeviceInfo(String deviceNumStr);
    }
}
